﻿using System.Windows;

namespace Poet.Views
{
    /// <summary>
    /// Interaction logic for EncodingView.xaml
    /// </summary>
    public partial class EncodingView
    {
        public EncodingView()
        {
            InitializeComponent();
            ListView.SelectionChanged += (sender, args) => ListView.ScrollIntoView(ListView.SelectedItem);
            ListView.Items.CurrentChanged += (sender, args) => ListView.ScrollIntoView(ListView.SelectedItem);
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }
    }
}
